<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta charset="UTF-8">
		<title>确认订单</title>
		<script type="text/javascript" src="js/jquery-2.1.4.min.js" ></script>
		<script type="text/javascript">
			window.onload = function() {
				document.documentElement.style.fontSize = document.documentElement.clientWidth / 320 * 20 + 'px';
				window.onresize = function() {
					document.documentElement.style.fontSize = document.documentElement.clientWidth / 320 * 20 + 'px';
				};
			};
		</script>
		<link rel="stylesheet" type="text/css" href="css/querendingdan.css"/>
	</head>
	<body>
		<header class="querenHeader">
			<a href="../1603B-taobao/dingdanxiangqing.html">< 确认订单</a>
		</header>
		<div class="querendingdan">
			<section>
				<img src="img/xq2.jpg">
				<p>  <samp id="shouhuo">收货人:</samp><span id="shouji">16584546885</span></p>
				<p id="dizhi">收货地址:北京市大兴区西红门福利农村供销学校</p>
				<p>(收货不便时,可选择免费代收货服务)</p>
				<img src="img/qr1.jpg">
			</section>
			<!-- <section>
				<figcaption><img src="img/qr2.jpg">天猫超市</figcaption>
				<aside>
					<img src="img/qr3.jpg">
					<p>【天猫超市】三只松鼠 山楂条208g休闲零食特产果脯蜜饯小包装</p>
					<p>七天退换</p>
					<p>
						<span>￥15.90</span>
						<span>共0.624kg</span>
						<span>X3</span>
					</p>
				</aside>
				<aside>
					<span>配送方式</span>
					<span>快递￥20.00></span>
				</aside>
				<aside>
					<span>配送时间</span>
					<span>23:00前付款,预计12月9日(明天)送达></span>
				</aside>
				<aside>
					<span>运费险</span>
					<span>></span>
				</aside>
				<aside>
					<span>开具发票</span>
					<span><input type="checkbox"></span>
				</aside>
			</section> -->
		</div>
		<footer class="tijiao">
						
				<a id="look">查看订单</a>
			
		</footer>
	</body>
	
	<script>
		
 if(localStorage.dizhi){
	var dizhi=localStorage.dizhi.split("-");
	$("#shouhuo").text("收货人:"+dizhi[0]);
	$("#shouji").text(dizhi[1]);
	$("#dizhi").text(dizhi[2])
}
var ajax_n=0;
$.ajax({
	type:"post",
	url:"http://192.168.1.100/supermarket/data/get_commodity_order.php",
	data: {'user_phone':localStorage.user_phone},
	dataType:"jsonp",
 	jsop:"callback",
 	jsonpCallback:"success_JsonpCallback",
	async:true,
	success:function(e){	
		
		for (i=0;i<e.length;i++) {
			var num=e[i].count;
			var id=e[i].commodity_id

		}
		
	}
});
	$("#look").click(function(){
	window.location.href="mydingdan.html"
})	
		
	</script>
	
	
</html>
